

#ifndef _CEPT_DEVICE_DATA_H_
#define _CEPT_DEVICE_DATA_H_

#include <Windows.h>
#include "CChannel.h"
#include "CAblationParameterEx.h"


class CEPTDeviceData
{

public:
	PBYTE m_pAblationData;
	PBYTE m_pStatusResponse;

	VOID  GetAblationParameter(CAblationParameterEx & f_objCAblParamEx);
	INT32 GetDeviceMode();
	inline BOOL  IsResetPacket()
	{
		return m_bResetPacket;
	}

	VOID  ResetBuffer();	

	CEPTDeviceData();
	~CEPTDeviceData();
private:
	INT32 GetParameterAt(INT32 f_lowIdx, INT32 f_highIdx);
	BOOL m_bResetPacket;

	enum EParamIndex
	{
		PARAM_TEMP_HIGH = 0,
		PARAM_TEMP_LOW  = 1,
		PARAM_DURA_HIGH = 2,
		PARAM_DURA_LOW  = 3,
		PARAM_CURR_HIGH = 4,
		PARAM_CURR_LOW  = 5,
		PARAM_VOLT_HIGH = 6,
		PARAM_VOLT_LOW  = 7,
		PARAM_IMP_HIGH = 8,
		PARAM_IMP_LOW  = 9,
		PARAM_POW_HIGH = 10,
		PARAM_POW_LOW  = 11
	};
};

#endif